<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022\4\24 0024
 * Time: 15:07
 */
class Demo
{
    public $name='php中文网';

    public function getName()
    {
        return $this->name;
    }
    public static function getSelf()
    {
        return new self();
    }

    public function getStatic()
    {
        return new static();
    }
}
$demo = new Demo;
var_dump($demo);
die();
$res=count($demo );
var_dump($res);

